﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Catalog.API.Model
{
    /// <summary>
    /// 快递类型
    /// </summary>
    public class ExpressType
    {
        public int Id { get;private set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get;private set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserId { get;private set; }
        /// <summary>
        /// 官方电话
        /// </summary>
        public string Phone { get; private set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; private set; }
        /// <summary>
        /// 快递类型构造函数
        /// </summary>
        /// <param name="name">类型名称</param>
        /// <param name="phone">电话</param>
        /// <param name="createUserId">创建人</param>
        public ExpressType(string name,string phone, string createUserId)
        {
            this.Name = name;
            this.Phone = phone;
            this.CreateUserId = createUserId;
            this.CreateTime = DateTime.Now;
        }
    }
}
